package week1;

import java.util.Scanner;

public class YMD
  {
  public static void main(String[] args)
    {
    System.out.println("Y/M/D");
    Scanner scanner = new Scanner(System.in);
    int year = scanner.nextInt();
    int month = scanner.nextInt();
    int day = scanner.nextInt();
    int sum = 0;
    //创建一个包含每月天数的数组（非闰年）
    int[] arr = {31,28,31,30,31,30,31,31,30,31,30,31};
    sum = day;//日
    for(int i = 1;i < month;i++)//月
      {
      sum += arr[i];
      }
      //闰年
     boolean isRight = (((year%4==0)&&(year%100!=0))||(year%400==0))&&(month>2);
      if(isRight)
        {
        sum += 1;
        }
      System.out.println(year+"/"+month+"/"+day+"/,is the "+sum+"th day.");
    }
  } 

